import Vue from "vue";
import Vuex from "vuex";
import Mock from "@/store/mock"
Vue.use(Vuex);
const serive = new Vuex.Store({
    state:{
        isCollapseStore:false,
        arrRouter:[
            {
                path:"home",
                icon:"el-icon-s-home",
                title:"首页"
            },
            {
                path:"department",
                icon:"el-icon-menu",
                title:"组织"
            },
            {
                path:"role",
                icon:"el-icon-s-tools",
                title:"角色"
            },
            {
                path:"staff",
                icon:"el-icon-s-custom",
                title:"员工"
            },
            {
                path:"authority",
                icon:"el-icon-lock",
                title:"权限"
            },
            {
                path:"attendance",
                icon:"el-icon-notebook-2",
                title:"考勤"
            },
            {
                path:"approval",
                icon:"el-icon-s-management",
                title:"审批"
            },
            {
                path:"salary",
                icon:"el-icon-sugar",
                title:"工资"
            },
            {
                path:"social-security",
                icon:"el-icon-fork-spoon",
                title:"社保"
            },
        ],
        activeObj:"",
    },
    mutations:{
        func1(store,value){
            store.isCollapseStore =value
        },
        func2(store,value){
            store.activeObj =value;
        }
    },
    actions:{

    },
    getters:{

    },
    modules:{
        Mock,
    }
})
export default serive;